﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
#if UNITY_EDITOR
using UnityEditor;
#endif 

// **********************************************************************
// Copyright (C) XM
// Author: 赵思佳
// Date: 2019-01-04
// Desc: 公共方法
// **********************************************************************
namespace SpaceDFramework
{
    /// <summary>
    /// 通用方法
    /// </summary>
    public class CommonUtil
    {
        public static void CopyText(string Text)
        {
            GUIUtility.systemCopyBuffer = Text;
        }
        
        public static void Log<T>(T msg)
        {
#if UNITY_EDITOR
            Debug.Log(msg);
#endif
        }
        public static void LogError(string error)
        {
#if UNITY_EDITOR
            Debug.LogError(error);
#endif
        }
        public static void LogWarning(string warning)
        {
#if UNITY_EDITOR
            Debug.LogWarning(warning);
#endif
        }
        public static void LogFormat(string format,params object[] args) {
            Debug.LogFormat(format, args);
        }
    }
}
